package fina2.dcs.fis;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "IN_CRITERION")
@SuppressWarnings("serial")
public class Criterion implements Serializable {
	private BigDecimal id;
	private String code;
	private BigDecimal nameStrId;
	private BigDecimal isDefault;
	private String description;
	private List<BankGroup> bankGroups = new ArrayList<BankGroup>();

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAMESTRID")
	public BigDecimal getNameStrId() {
		return nameStrId;
	}

	public void setNameStrId(BigDecimal nameStrId) {
		this.nameStrId = nameStrId;
	}

	@Column(name = "ISDEFAULT")
	public BigDecimal getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(BigDecimal isDefault) {
		this.isDefault = isDefault;
	}

	@Transient
	public List<BankGroup> getBankGroups() {
		return bankGroups;
	}

	public void setBankGroups(List<BankGroup> bankGroups) {
		this.bankGroups = bankGroups;
	}

	@Transient
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}